gdkwindow: Avoid list allocation and object refs during repaint
authorAlexander Larsson <alexl@redhat.com>
Mon, 14 Sep 2015 07:43:14 +0000 (09:43 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 14 Sep 2015 09:01:13 +0000 (11:01 +0200)
commiteafedfbaf8e080a1e444f46cde082fb2734552f9
treee0649cbfc8cbbc04b6e1ec23190f4539f1cec23f
parentd9c07063050747109bf29b20cb8c0149f79c6216
gdkwindow: Avoid list allocation and object refs during repaint

There is no need to ref the windows we're ignoring, so collect and ref
only the affected child windows. Also, use a on-stack array rather
than allocating a linked list.

Also, we don't need to ref during the event emissions too, as we
already hold a ref.

https://bugzilla.gnome.org/show_bug.cgi?id=754687
gdk/gdkwindow.c